package com.hori3d.rc.adapter;

import java.util.List;

import com.hori3d.rc.R;
import com.hori3d.rc.R.drawable;
import com.hori3d.rc.R.id;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

	public class SDFileAdapter extends BaseListAdapter<String> {

	  Context mContext;

	  public SDFileAdapter(Context ctx, List<String> datas) {
		    super(ctx, datas);
	  }

	 @Override
	public View getView(int position, View conView, ViewGroup parent) {
		 TextView nameView = null;   
		 ImageView iconFile=null;
		  if (conView == null) {
		      //conView = View.inflate(ctx, R.layout.group_item,null);
		      conView = inflater.inflate(R.layout.item_file, null, false);
		      iconFile=ViewHolder.findViewById(conView,R.id.icon_file);
	           iconFile.setImageResource(R.drawable.sd_file);
	   
		    }
		  
		   nameView = ViewHolder.findViewById(conView, R.id.tv_file_item);
          
	 
		    String f = datas.get(position);
		    nameView.setText(f);
		    return conView;
		  }
	};